package com.ezerg.boot.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.ezerg.boot.bean.TestBean;
import com.ezerg.boot.dao.TestMapper;

@Service
public class TestServiceImpl implements TestService {

	@Resource
	TestMapper testMapper;
	
	@Override
	@Transactional
	public String test() {
		TestBean test = testMapper.getTest(1);
		return ("test service =" + test.getName());
	}

	@Override
	public String rpc() {
		return "rpc";
	}
	
	@Override
	@Transactional
	public void tx() {
		
	}

}
